package com.thy;

import com.hospital.common.config.FeignConfig;
import com.hospital.common.config.GlobalHandlerConfig;
import com.hospital.common.config.WebConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@EnableDiscoveryClient
@Import({GlobalHandlerConfig.class, FeignConfig.class, WebConfig.class})
@MapperScan({"com.thy.mapper"})
@EnableFeignClients(basePackages = "com.thy.feign")
public class ManagementApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagementApplication.class, args);
    }
}